package pattern.command;

import lombok.Data;

/**
 * 实现命令模式接口的类
 *
 * @author sun.ye
 * @since 2020-07-14 11:36
 */
@Data
public class Person implements SuicideCommand {

    private boolean alive = true;

    @Override
    public void suicide() {
        alive = false;
    }
}